<%@page import="org.apache.commons.codec.binary.Base64"%>
<%@page import="java.util.Enumeration"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
	div.content{
		
	}
</style>
<title>test</title>
</head>
<body>
		<%
		  String temppass= request.getHeader("authorization"); 
		  if ((temppass!=null)&&(temppass.length()>6)){ 
			  if ((temppass!=null)&&(temppass.length()>6)){ 
				  temppass= temppass.substring(6,temppass.length()); 
				  out.println("取出来的用户名字和密码base64code为："+temppass); 
				  String temppassdecode =  new String(Base64.decodeBase64(temppass.getBytes()));
				  out.println("<br/>解码的结果是："+temppassdecode); 
				  out.print("<br/>");
		 } 
		 }
		%>
		<div>content</div>
</body>
</html>